package com.infore.dataReceiving.entity.air212;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 原始数据实体类
 */
@Entity
@Table(name="t_bas_porigdata")
public class OrigData implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="ID")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	/** 发送时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="TIME")
	private Date time;
	
	/** 因子名称 **/
	@Column(name="MONIPROJNAME")
	private String moniProjName;
	
	/** 数据值 **/
	@Column(name="DATAVALUE")
	private String dataValue;
	
	/** 数据状态 **/
	@Column(name="DATASTATE")
	private String dataState;
	
	/** 设备id **/
	@Column(name="MONIEQUIID")
	private Long moniEquiId;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getMoniProjName() {
		return moniProjName;
	}
	public void setMoniProjName(String moniProjName) {
		this.moniProjName = moniProjName;
	}
	public String getDataValue() {
		return dataValue;
	}
	public void setDataValue(String dataValue) {
		this.dataValue = dataValue;
	}
	public String getDataState() {
		return dataState;
	}
	public void setDataState(String dataState) {
		this.dataState = dataState;
	}
	public Long getMoniEquiId() {
		return moniEquiId;
	}
	public void setMoniEquiId(Long moniEquiId) {
		this.moniEquiId = moniEquiId;
	}

}
